package com.six.flowerShopper.controller

import com.six.flowerShopper.service.PurchaseHistoryService
import com.six.library.model.ResultData
import com.six.library.model.ResultInfo
import org.springframework.web.bind.annotation.*
import javax.annotation.Resource


/*-*- coding:utf-8 -*-
 * @Author  : debi
 * @Time    : 10/26/22
 * @Software: IntelliJ IDEA
 */
@RestController
@RequestMapping("/rest")
@CrossOrigin
class RestTEst {
    @Resource
    private lateinit var phs: PurchaseHistoryService

    @RequestMapping("/getId/{id}")
    fun getId(@PathVariable(value = "id", required = false) id: Int) {
        phs.getFlowerInfoById(id)

    }
}